<?php

use yii\db\Migration;

class m160120_080059_modify_email_not_null extends Migration
{
    public function up()
    {
        $this->alterColumn('email','receiver_name',$this->string(50)->notNull());
        $this->alterColumn('email','receiver_email',$this->string(200)->notNull());
        $this->alterColumn('email','subject',$this->string()->notNull());
        $this->alterColumn('email','content',$this->text()->notNull());
    }

    public function down()
    {
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
